package routers

import (
	"xmy/controllers/admin"
	"github.com/astaxie/beego"
)

func init() {
//用户管理
        beego.Router("/", &controllers.UserController{},"*:Login")                 //用户登录
	beego.Router("/checklogin", &controllers.UserController{},"*:Checklogin")  //用户登录判断
	beego.Router("/main", &controllers.UserController{},"*:Main")              //用户登录主面板
	beego.Router("/changepwd", &controllers.UserController{},"*:Changepwd")    //用户密码修改
	beego.Router("/logout", &controllers.UserController{},"*:Logout")          //用户退出


//首页管理
        //新闻管理
	beego.Router("/homePage", &controllers.HomeController{},"*:HomePage")
	beego.Router("/home/newsManage", &controllers.HomeController{},"*:NewsManage")                      //新闻管理主页
	beego.Router("/home/newsPage", &controllers.HomeController{},"*:NewsPage")                          //新闻管理列表
	beego.Router("/home/addnews", &controllers.HomeController{},"*:AddNews")                            //添加新闻
	beego.Router("/home/recyclenewsbyid", &controllers.HomeController{},"*:RecycleNew")                 //新闻加入回收站
	beego.Router("/home/newsManageRecycle", &controllers.HomeController{},"*:NewsManageRecycle")        //新闻回收站管理主页
	beego.Router("/home/newsManageRecyclePage", &controllers.HomeController{},"*:NewsManageRecyclePage")//新闻回收站管理列表
	beego.Router("/home/rednewsbyid", &controllers.HomeController{},"*:ReductionNew")                   //新闻从回收站还原
	beego.Router("/home/deletenewsbyid", &controllers.HomeController{},"*:DeleteNew")                   //新闻从回收站删除




//营销活动管理
        //活动管理
	beego.Router("/marketing/activityManage", &controllers.ActivityController{},"*:ActivityManage")
	beego.Router("/marketing/activityManagePage", &controllers.ActivityController{},"*:ActivityManagePage")
	beego.Router("/marketing/addactivity", &controllers.ActivityController{},"*:AddActivity")
	beego.Router("/marketing/recycleactivitybyid", &controllers.ActivityController{},"*:RecycleActivity")
	beego.Router("/marketing/activityManageRecycle", &controllers.ActivityController{},"*:ActivityManageRecycle")
	beego.Router("/marketing/activityManageRecyclePage", &controllers.ActivityController{},"*:ActivityManageRecyclePage")
	beego.Router("/marketing/redactivitybyid", &controllers.ActivityController{},"*:ReductionActivity")
	beego.Router("/marketing/delactivitybyid", &controllers.ActivityController{},"*:DeletActivity")


	//报名管理
	beego.Router("/marketing/entryManage", &controllers.EntryController{},"*:EntryManage")
	beego.Router("/marketing/entryManagePage", &controllers.EntryController{},"*:EntryManagePage")
	beego.Router("/marketing/entourageManagePage", &controllers.EntourageController{},"*:EntourageManagePage")

	beego.Router("/marketing/entry/excel", &controllers.EntryController{},"*:EntryExcel")   //导出报名申请单



//系统设置
        //邮箱设置
	beego.Router("/system/mailConfig", &controllers.MailController{},"*:MailConfigManage")   //
	beego.Router("/system/mailDetail", &controllers.MailController{},"*:MailConfigManageDetail")   //
	beego.Router("/system/mailEdit", &controllers.MailController{},"*:MailConfigManageEdit")   //

        //发送设置
	beego.Router("/system/sendConfig", &controllers.SendController{},"*:SendConfigManage")   //
	beego.Router("/system/sendDetail", &controllers.SendController{},"*:SendConfigManageDetail")   //
	beego.Router("/system/sendEdit", &controllers.SendController{},"*:SendConfigManageEdit")   //

	beego.Router("/system/testSql", &controllers.SendController{},"*:TestSql")   //


//联系我们
	//咨询管理
	beego.Router("/contact/consultManage", &controllers.ConsultController{},"*:ConsultManage")
	beego.Router("/contact/consultManagePage", &controllers.ConsultController{},"*:ConsultManagePage")
	beego.Router("/contact/consultDetail", &controllers.ConsultController{},"*:ConsultDetail")
	beego.Router("/contact/consultReplycontent", &controllers.ConsultController{},"*:ConsultReplyContent")



//商旅平台管理
	//入证台管理
	beego.Router("/business/entryCardManage", &controllers.BusinessController{},"*:EntryCardManage")
	beego.Router("/business/entryCardManagePage", &controllers.BusinessController{},"*:EntryCardManagePage")

	beego.Router("/business/entryCardCost", &controllers.BusinessController{},"*:EntryCardCost")
	beego.Router("/business/entryCardCostPage", &controllers.BusinessController{},"*:EntryCardCostPage")
	beego.Router("/business/entryCardAgreement", &controllers.BusinessController{},"*:EntryCardAgreement")
	beego.Router("/business/agreementDetail", &controllers.BusinessController{},"*:AgreementDetail")
	beego.Router("/business/agreementEdit", &controllers.BusinessController{},"*:AgreementEdit")














}
